Label

The easiest control is label. the label is an object of type Label and it contains a String.
Constructors
Label( )
Label(string)
Label(string,int how) 
How= Label.LEFT,Label.RIGHT,Label.CENTER
Methods
void setText(string)
string getText( )
void setAlignment(how)
int getAlignment( )

Adding & Removing controls:

component Add(component object)
void remove(component object)
void removeAll( )

         


LABEL WRITE A PROGRAM ON LABLES.

import java.awt.*;
import java.applet.*;
public class Lable extends Applet
{
public void init()
{
Label  l1=new Label("Vision");
Label  l2=new Label("Computers");
Label  l3=new Label("Main Road");
Label  l4=new Label("Vuyyuru");
add(l1);
add(l2);
add(l3);
add(l4);
}
}

/*<applet code=Lable height=100 width=300>
</applet>*/